package cn.gailvlun.gll.chatlib.message;


public enum MessageType {
    text(0),
    walkieTalkie(1),
    image(2),
    invite(3),
    checkIn(4),
    time(5),
    initInfo(6),
    sticker(7);

    private int msgValue;

    MessageType(int msgValue) {
        this.msgValue = msgValue;
    }

    public int getMsgValue() {
        return msgValue;
    }

    public void setMsgValue(int msgValue) {
        this.msgValue = msgValue;
    }

    public static MessageType getByInt(int msgValue) {
        return values()[msgValue];
    }
}
